package com.star.uc.contract.command;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serial;
import java.io.Serializable;

/**
 * 登出
 *
 * @author zhouhengzhe
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
@Schema(description = "登出")
public class LogoutCommand implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @NotBlank(message = "用户id不能为空")
    @Schema(description = "用户id")
    private String uid;

    /**
     * 客户端类型
     *
     * @see com.star.uc.contract.enums.ClientTypeEnum
     */
    @NotBlank(message = "客户端类型不能为空")
    @Schema(description = "客户端类型")
    private String clientType;
}
